import router from "./routers";
import store from "./store";

router.beforeEach(async (to, from, next) => {
    const _title = store.state.systemName;
    if (to.meta.title) {
        document.title = to.meta.title + ` - ${_title}`;
    } else {
        document.title = _title;
    }
    next();
});
